package com.zuoye.Dey04;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("dey11\\src\\com\\zuoye\\dey04\\test2_1.txt"));
        HashMap<String, String> map = new HashMap<>();
        for (String i; (i = br.readLine()) != null; ) {
            String[] split = i.split(",");
            map.put(split[0], split[1]);
        }
        System.out.println(map);
        br.close();
    }
}
